package com.neo4j.neo4jcloud.mapper;

import com.neo4j.neo4jcloud.entity.CompanyGraph;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;

/**
 * @author kabuqinuo
 * @date 2020/3/26 13:52
 */
public interface CompanyGraphRepository extends Neo4jRepository<CompanyGraph, Long> {

    @Query("match(c:CompanyGraph{NodeId:{nodeId}}) return c")
    CompanyGraph findOneByNodeId(String nodeId);
}
